<div id="show-user" class="span9 content scaffold-show" role="main">
    <h3><g:message code="ljoj.onlinejudge.profile.personalData.title" args="[userInstance.username]" /></h3>
    <g:if test="${flash.message}">
        <div class="message" role="status">${flash.message}</div>
    </g:if>
    <ol class="property-list user">

        <g:if test="${userInstance?.username}">
            <li class="fieldcontain">
                <span id="username-label" class="property-label"><g:message code="ljoj.onlinejudge.user.username.label" default="Username" />:</span>

                <span class="property-value" aria-labelledby="username-label"><g:fieldValue bean="${userInstance}" field="username"/></span>

            </li>
        </g:if>

        <g:if test="${userInstance?.email}">
            <li class="fieldcontain">
                <span id="email-label" class="property-label"><g:message code="ljoj.onlinejudge.user.email.label" default="Email" />:</span>

                <span class="property-value" aria-labelledby="email-label"><g:fieldValue bean="${userInstance}" field="email"/></span>

            </li>
        </g:if>

        <g:if test="${userInstance?.province}">
            <li class="fieldcontain">
                <span id="province-label" class="property-label"><g:message code="ljoj.onlinejudge.user.province.label" default="Province" />:</span>

                <span class="property-value" aria-labelledby="province-label"><g:link controller="province" action="show" id="${userInstance?.province?.id}">${userInstance?.province?.encodeAsHTML()}</g:link></span>

            </li>
        </g:if>

        <g:if test="${userInstance?.city}">
            <li class="fieldcontain">
                <span id="city-label" class="property-label"><g:message code="ljoj.onlinejudge.user.city.label" default="City" />:</span>

                <span class="property-value" aria-labelledby="city-label"><g:link controller="city" action="show" id="${userInstance?.city?.id}">${userInstance?.city?.encodeAsHTML()}</g:link></span>

            </li>
        </g:if>

        <g:if test="${userInstance?.school}">
            <li class="fieldcontain">
                <span id="school-label" class="property-label"><g:message code="ljoj.onlinejudge.user.school.label" default="School" />:</span>

                <span class="property-value" aria-labelledby="school-label"><g:link controller="school" action="show" id="${userInstance?.school?.id}">${userInstance?.school?.encodeAsHTML()}</g:link></span>

            </li>
        </g:if>

        <g:if test="${userInstance?.nickname}">
            <li class="fieldcontain">
                <span id="nickname-label" class="property-label"><g:message code="ljoj.onlinejudge.user.nickname.label" default="Nickname" />:</span>

                <span class="property-value" aria-labelledby="nickname-label"><g:fieldValue bean="${userInstance}" field="nickname"/></span>

            </li>
        </g:if>

        <g:if test="${userInstance?.motto}">
            <li class="fieldcontain">
                <span id="motto-label" class="property-label"><g:message code="ljoj.onlinejudge.user.motto.label" default="Motto" />:</span>

                <span class="property-value" aria-labelledby="motto-label"><g:fieldValue bean="${userInstance}" field="motto"/>:</span>

            </li>
        </g:if>

        <g:if test="${userInstance?.birthday}">
            <li class="fieldcontain">
                <span id="birthday-label" class="property-label"><g:message code="ljoj.onlinejudge.user.birthday.label" default="Birthday" /></span>

                <span class="property-value" aria-labelledby="birthday-label"><g:formatDate date="${userInstance?.birthday}" /></span>

            </li>
        </g:if>

        <g:if test="${userInstance?.languageType}">
            <li class="fieldcontain">
                <span id="languageType-label" class="property-label"><g:message code="ljoj.onlinejudge.user.languageType.label" default="Language Type" /></span>

                <span class="property-value" aria-labelledby="languageType-label"><g:link controller="languageType" action="show" id="${userInstance?.languageType?.id}">${userInstance?.languageType?.encodeAsHTML()}</g:link></span>

            </li>
        </g:if>
    </ol>
</div>